from django.db import models

# Create your models here.

class Customer(models.Model):
    Cust_ID = models.CharField(max_length=4)
    Cust_Name = models.CharField(max_length=30)
    def __unicode__(self):
        return u'%s' % self.Cust_ID

class Computer(models.Model):
    Cust_ID = models.CharField(max_length=4)
    Com_ID = models.CharField(max_length=4)
    State = models.CharField(max_length=30)
    Recieve_fix_date = models.CharField(max_length=12)
    Finish_fix_date = models.CharField(max_length=12)
    Return_date = models.CharField(max_length=12)
    Who = models.CharField(max_length=30)
    def __unicode__(self):
        return u'%s' % self.Com_ID
